home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Add-Ons / After Dark / Joe Judge / Misc ƒ / utils.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-26  |  847 b   |  40 lines  |  [TEXT/KAHL]

  1.  
  2. #include <Dialogs.h>
  3.  
  4. unsigned short RangedRdm( unsigned short min, unsigned short max );
  5. #define random()  (RangedRdm(0, 65535))
  6. #if 0
  7.     unsigned short random(void);
  8. #endif
  9.  
  10. short isPressed(unsigned short k );
  11.  
  12. Boolean WNEAvailable(void);
  13. Boolean HasColorQD(void);
  14. Boolean HasNewGWorld(void);
  15. Boolean HasSoundInputDevice(void);
  16.  
  17. void RandomIndexedColor(short screenDepth);
  18. void SetIndexedColor(int whichColor);
  19.  
  20. void SetRandomDarkRGB(void);
  21. void SetRandomBrightRGB(void);
  22.  
  23. void PickDarkRGB( RGBColor *rgb);
  24. void PickBrightRGB( RGBColor *rgb);
  25.  
  26.  
  27. void
  28. SetColorDiff( 
  29.     RGBColor *rgbTheColor, 
  30.         RGBColor *a, RGBColor *b, 
  31.             double percent);
  32.             
  33. void FlashDItem(DialogPtr dlg, int item);
  34.  
  35. void pstrcat(char *s1, char *s2);
  36. void pstrcpy( char *s1, char *s2 );
  37. Boolean HasTimeMgr(void);
  38.  
  39. long PickDarkIndexColor(void);
  40. long PickBrightIndexColor(void);